package cn.wenhaha.common.bean.dto.mapper;

import cn.wenhaha.common.bean.vo.RolesVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * --------
 *
 * @author ：wyndem
 * @Date ：Created in 2022-03-26 18:54
 */
@Mapper
public interface RolesVoMapper {

    RolesVoMapper INSTANCE = Mappers.getMapper( RolesVoMapper.class );



//    List<RolesVo> toRolesVoList(List<SysRole> roles);

//    @Mapping(source = "roles.roleId", target = "id")
//    @Mapping(source = "roles.roleName", target = "name")
//    RolesVo toRolesVo(SysRole roles);
}
